/*
 *  laserfield.h
 *  
 *
 *  Created by Camilo Ruiz Méndez on 22/01/09.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */

#include "constants.h"
#include<iostream>
#include<vector.h> 

class laser
	{	
	public:
		
		//Field parameters
		double w0;  //=0.057;
		double k0;  //=w0/lightC_au;
		double lambda;//=2.*pi/w0;
		int  nw; //=20;
		
		double wp; //=w0/2./nw; //Envelope frequency;
		double kp; //=wp/lightC_au;
		double E0; //=0.5;
		
		void initialize(double _w0,int _nw, double _E0)
		{
			w0=_w0;
			k0=w0/lightC_au;
			lambda=2.*Pi/k0;
			
			nw=_nw;
			wp=w0/2./nw;
			kp=wp/lightC_au;
			E0=_E0;
		}
		
		laser(double _w0,int _nw, double _E0)
		{
			w0=_w0;
			k0=w0/lightC_au;
			lambda=2.*Pi/k0;
			
			nw=_nw;
			wp=w0/2./nw;
			kp=wp/lightC_au;
			E0=_E0;
		}
	};
